package com.包装者模式.decorator;

import com.包装者模式.Shape;

/**
 * @author: 
 * @Date: 2022/10/12
 * @Description:
 */
public class RedShapeDecorator extends ShapeDecorator {

    public RedShapeDecorator(Shape decoratedShape) {
        super(decoratedShape);
    }

    @Override
    public void draw() {
        System.out.println(this.getClass().getName()+":draw");
        decoratedShape.draw();

    }


}